#include "supervise.h"

void supervise(){
  int32_t supervisor_pid = obtenir_pid();
  int i = 0;
  int32_t args[4];
  args[0] = supervisor_pid;
  for (i=0; i<NUMBER_SPAWNS; i++) {
    // spawn NUMBER_SPAWNS supervisee processes
    fourchette(5, "supervised_spawn", args);
  }
  for (i=0; i<NUMBER_SPAWNS; i++) {
    // Wait for them to return, tell world about it
    //char* m;
    //recevoir_premier(m);
    //ecrire(m);
  }
}

